package com.android.entities;

import com.android.util.Functions;

public class Category {

	private String id;
	private String name;
	private int rate;
	
	public Category(String name) {
		this.name = name;
		this.id = Functions.removeSpecialCharacters(name)
				.replaceAll(" ", "_").toLowerCase();
	}

	public Category(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public Category(String id, String name, int rate) {
		this.id = id;
		this.name = name;
		this.rate = rate;
	}

	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getRate() {
		return rate;
	}
	
	public void setRate(int rate) {
		this.rate = rate;
	}
	
}
